package com.youxin.cpcenter.model;


import java.util.Date;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.busfoundation.enums.EnterprisePassStatus;
import com.youxin.foundation.utils.DateUtil;

public class TbEntTryoutInfo {
    /**  */
    private Long id;

    /** 真实姓名 */
    private String name;
    /** 用户提交的公司名称 */
    @JsonProperty("source_company_name")
    private String sourceCompanyName;
    
    /** 公司名称 */
    @JsonProperty("company_name")
    private String companyName;
    
    /** 企业认证id */
    @JsonProperty("ent_identify_id")
    private Long entIdentifyId;
    
    @JsonProperty("ent_member_id")
    private long entMemberId;
    /** 邮箱 */
    private String email;

    /** 手机 */
    private String mobile;

    /** 状态 0-待审核 1-审核通过 2-审核失败 */
    private Integer status;

    /** 公司uid */
    @JsonProperty("company_uid")
    private String companyUid;
    

    /** 审核人员id */
    @JsonProperty("member_id")
    private Long memberId;

    /** 审核人员用户名 */
    @JsonProperty("member_name")
    private String memberName;

    /** 职位 */
    private String position;

    /** 银行账号 */
    private String account;

    /** 身份证七牛云链接 */
    @JsonProperty("id_card_url")
    private String idCardUrl;

    /** 营业执照七牛云链接 */
    @JsonProperty("business_license_url")
    private String businessLicenseUrl;

    /** 添加时间 */
    @JsonIgnore
    private Long addTime;

    /** 更新时间 */
    @JsonIgnore
    private Long updateTime;
    
    /** 审核人员id */
    @JsonProperty("review_member_id")
    private Long reviewMemberId;

    /** 审核员用户名 */
    @JsonProperty("review_member_name")
    private String reviewMemberName;

    
        
    public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getSourceCompanyName() {
		return sourceCompanyName;
	}

	public void setSourceCompanyName(String sourceCompanyName) {
		this.sourceCompanyName = sourceCompanyName;
	}

	public Long getEntIdentifyId() {
		return entIdentifyId;
	}

	public void setEntIdentifyId(Long entIdentifyId) {
		this.entIdentifyId = entIdentifyId;
	}

	@JsonProperty("create_time")
    public String createTime()
    {
    	return DateUtil.dateToString(new Date(addTime));
    }
    
    @JsonProperty("status_name")
    public String statusName()
    {
    	return EnterprisePassStatus.getNameByValue(status.shortValue());
    }
    

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile == null ? null : mobile.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    
    

    public String getCompanyUid() {
        return companyUid;
    }

    public void setCompanyUid(String companyUid) {
        this.companyUid = companyUid == null ? null : companyUid.trim();
    }


    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName == null ? null : memberName.trim();
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position == null ? null : position.trim();
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getIdCardUrl() {
        return idCardUrl;
    }

    public void setIdCardUrl(String idCardUrl) {
        this.idCardUrl = idCardUrl == null ? null : idCardUrl.trim();
    }

    public String getBusinessLicenseUrl() {
        return businessLicenseUrl;
    }

    public void setBusinessLicenseUrl(String businessLicenseUrl) {
        this.businessLicenseUrl = businessLicenseUrl == null ? null : businessLicenseUrl.trim();
    }

    public Long getAddTime() {
        return addTime;
    }

    public void setAddTime(Long addTime) {
        this.addTime = addTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

	public long getEntMemberId() {
		return entMemberId;
	}

	public void setEntMemberId(long entMemberId) {
		this.entMemberId = entMemberId;
	}

	public Long getReviewMemberId() {
		return reviewMemberId;
	}

	public void setReviewMemberId(Long reviewMemberId) {
		this.reviewMemberId = reviewMemberId;
	}

	public String getReviewMemberName() {
		return reviewMemberName;
	}

	public void setReviewMemberName(String reviewMemberName) {
		this.reviewMemberName = reviewMemberName;
	}
    
    
}